<style scoped>
</style>
<!--  -->
<template>
  <div class="repertory-label">
    <TipTotal title="资源标签列表">
      <p style="float:left;">
        <OperateRepertoryLabelList :create="create" />
      </p>
      <template slot="total">
        <p
          style="float:right;margin-right:8px;"
          v-if="total"
        >标签总数量：{{total}}</p>
      </template>
    </TipTotal>

    <!-- 列表数据 -->
    <DataTable ref="repertoryLabelDataTable" :dataTotal="dataTotal" />
    <div style="height: 18px;"></div>
  </div>
</template>

<script>
import TipColla from '@/components/common/TipColla.vue'
import TipTotal from '@/components/common/TipTotal.vue'
import OperateRepertoryLabelList from '@/components/main/user/repertory/label/OperateRepertoryLabelList.vue'
import DataTable from '@/components/main/user/repertory/label/DataTable.vue'
export default {
  data () {
    return {
      total: 0
    }
  },
  computed: {
  },
  components: {
    TipColla,
    TipTotal,
    OperateRepertoryLabelList,
    DataTable
  },
  methods: {
    dataTotal (total) {
      this.total = '' + total
    },
    create () {
      this.$refs['repertoryLabelDataTable'].create()
    }
  }
}

</script>
